package com.zc.app.shiro.service;

import com.zc.app.shiro.dao.PermissionDao;
import com.zc.app.shiro.peer.PermissionPeer;

/**
 * Created by zc on 2016/7/15.
 */
public class PermissionServiceImpl implements PermissionService {

    private PermissionDao permissionDao;

    public void setPermissionDao(PermissionDao permissionDao) {
        this.permissionDao = permissionDao;
    }

    public PermissionPeer createPermission(PermissionPeer permission) {
        return permissionDao.createPermission(permission);
    }

    public void deletePermission(Long permissionId) {
        permissionDao.deletePermission(permissionId);
    }

}
